// 定义枚举类型
var Direction;
(function (Direction) {
    Direction[Direction["UP"] = 0] = "UP";
    Direction[Direction["DOWN"] = 1] = "DOWN";
    Direction[Direction["LEFT"] = 2] = "LEFT";
    Direction[Direction["RIGHT"] = 3] = "RIGHT";
})(Direction || (Direction = {}));
var d1 = Direction.DOWN;
var d2 = Direction.LEFT;
var d3 = Direction.RIGHT;
var d4 = Direction.UP;
console.log(d1, d2, d3, d4);
